package com.intre.open.gwtjpa.data.second.client.service;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.intre.open.gwtjpa.data.second.domain.City;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("datasecondservice")
public interface DataSecondService extends RemoteService {
	
	/**
	 * Utility class for simplifying access to the instance of async service.
	 */
	public static class Util {
		private static DataSecondServiceAsync instance;
		public static DataSecondServiceAsync getInstance(){
			if (instance == null) {
				instance = (DataSecondServiceAsync) GWT.create(DataSecondService.class);
			}
			return instance;
		}
	}
	
	// crud
	List<City> getAll(); 
	
}
